/**
 * Created by Well
 * Date-Time: 2022-02-19
 * E-mail: well634890@126.com
 */

import React from 'react';
import { Select } from 'antd';
import { SearchOutlined } from '@ant-design/icons';

const projects = [
  {
    label: '项目1',
    value: '项目1',
  },
  {
    label: '项目2',
    value: '项目2',
  },
  {
    label: '项目3',
    value: '项目3',
  },
  {
    label: '项目4',
    value: '项目4',
  },
  {
    label: '项目5',
    value: '项目5',
  },
];

export default class HeaderSearch extends React.Component {
  constructor() {
    super();
    this.state = {
      projects,
    };
  }

  render() {
    return (
      <Select
        style={{ width: '160px' }}
        showSearch
        suffixIcon={<SearchOutlined />}
        options={projects}
      />
    );
  }
}
